#include<bits/stdc++.h>
using namespace std;
int n,x,A,B;
int main()
{
    freopen("nim.in","r",stdin);
    freopen("nim.out","w",stdout);
    ios::sync_with_stdio(false);cin.tie(0);
    cin>>n>>x>>A>>B;
    if(A <= B)
    {
        cout<<"1\n";
        return 0;
    }
    cout<<"1\n";
    return 0;
}